//企业列表数据
export const columns = [
  {
    title: '数据库名称',
    dataIndex: 'filePath',
    width: 160,
  },
  {
    title: '版本号',
    dataIndex: 'version',
    width: 50,
  },
  {
    title: '脚本状态',
    dataIndex: 'state',
    width: 50,
  },
  {
    title: '版本描述',
    dataIndex: 'description',
    width: 100,
  },
  {
    title: '执行时长',
    dataIndex: 'executionTime',
    width: 50,
  },
  {
    title: '操作人',
    dataIndex: 'lastUpdateBy',
    width: 60,
  },
  {
    title: '最后操作时间',
    dataIndex: 'lastUpdateTime',
    width: 100,
  },
  {
    title: '操作',
    key: 'action',
    width: 100,
    slots: { customRender: 'action' },
  },
];

//企业搜索框数据
export const searchFormSchema = [
  {
    field: 'version',
    label: '版本:',
    labelWidth: 100,
    component: 'Input',
    componentProps: {
      placeholder: '请输入版本名称',
    },
    colProps: { span: 8 },
    rules: [
      {
        trigger: 'change',
        max: 64,
        message: '字符数不超过64位',
      },
    ],
  },
];

export type Page = {
  current: number;
  pageSizeOptions: string[];
  total: number;
  pageSize: number;
};
